package com.sufen.common.exception;


import com.sufen.common.reponse.CodeMsg;

/**
 * @description: 自定义异常2
 * @function:
 * @author: Liu Menglei
 * @Date: 2021/11/1 0001 21:36
 */
public class GlobalException extends RuntimeException {

    private static final long serialVersionUID = 20211101L;
    private CodeMsg cm;

    public GlobalException(CodeMsg cm){
        super(cm.toString());
        this.cm = cm;
    }

    public CodeMsg getCm(){
        return cm;
    }

}